Skip to main content

nasCreate

Description

nas create.

Request Method

POST

Request Path

/customer/nas/create

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
resourcePlanTypeBODYstringYesNo sample value for this parameter.resource plan type,GeneralPurposeNASResourcePlan
periodBODYintegerYesNo sample value for this parameter.period
costBODYstringYesNo sample value for this parameter.cost
regionIdBODYstringYesNo sample value for this parameter.region id
billingMethodBODYstringYesNo sample value for this parameter.billing method(nas package only support Subscription)
voucherInstanceIdBODYstringYesNo sample value for this parameter.voucher of the order
pricingCycleBODYstringYesNo sample value for this parameter.pricing cycle, Year/Month
couponInstanceIdBODYstringYesNo sample value for this parameter.coupon of the order
capacityBODYintegerYesNo sample value for this parameter.package capacity, GB

Return data

NameTypeSample valueDescription
resultobject`{"instanceId":"NAS-NRP339782378999668736","orderId":"2023011120283100001"}`No description for this parameter.
resultCodestring0No description for this parameter.
resultMsgstringsuccessNo description for this parameter.

Example

Successful Response example

{
"result":
{
"instanceId":"NAS-NRP339782378999668736",
"orderId":"2023011120283100001"
},
"resultCode":"0",
"resultMsg":"success"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}